package net.towee.model.account.impl;

import net.towee.model.account.Connection;
import net.towee.model.account.ConnectionType;

import com.google.code.morphia.annotations.Embedded;

/**
 * How to connect with some user?
 * @author c58
 */
@Embedded
public class ConnectionImpl implements Connection {
	private String value;
	private ConnectionType type;
	
	public ConnectionImpl(){}
	public ConnectionImpl(ConnectionType type, String value) {
		this.value = value;
		this.type = type;
	}
	
	@Override
	public void setConnectionType(ConnectionType type) {
		this.type = type;
	}

	@Override
	public void setValue(String val) {
		this.value = val;
	}

	@Override
	public String getValue() {
		return value;
	}

	@Override
	public ConnectionType getType() {
		return type;
	}

}
